<!DOCTYPE html>
<html>
	<head>
		<link rel="icon" href="{site}/favicon.ico" type="image/x-icon">
		<link rel="shortcut icon" href="{site}/favicon.ico" type="image/x-icon">
		<link rel="bookmark" href="{site}/favicon.ico" type="image/x-icon">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
		<meta name="format-detection" content="telephone=no"/>
		<link rel="stylesheet" type="text/css" href="{site}/Public/Css/mobile/public.css">
		<link rel="stylesheet" type="text/css" href="{site}/Public/Css/mobile/custom.css">
		<title>{site_config->site_title_mobile}</title>
	</head>
	<body>
	<!--头部开始-->
		<header>
			<div class="top_head white">
		    <div class="box1">
		        <a href="javascript:;" class="mainsite" id="mainsite" onclick="open_close_menu(event)"></a>
		    </div>
		    <div class="box2">
		        <a href="{site}">{site_config->site_title_mobile}</a>
		    </div>
		    <div class="box3">
		        	<?php if(empty($_SESSION['youyax_user'])){	?>
		            <a  href="__APP__/Login{url}loginMobile{shtml}"><span class="header_user">用户登录</span></a>
		          <?php	}else{	?>
		          <a href="__APP__/Index{url}self{shtml}"><span class="header_user">{user}</span></a>
		        <?php	}	?>
		    </div>
			</div>
			<div id="nav_notice" style="display:{message_status};z-index:9999;position:absolute;right:2px;top:40px;width:100px;height:22px;background: #fbf8df;border:1px solid #d1b07c;opacity: 0.9;filter:alpha(opacity=90);">
				<em style="position: absolute;right:15px;top:-20px;border-top: 10px solid transparent;border-left: 10px solid transparent;border-right: 10px solid transparent;border-bottom: 10px solid #d1b07c;"></em>
				<span style="position: absolute;right: 15px;top: -19px;border-top: 10px solid transparent;border-left: 10px solid transparent;border-right: 10px solid transparent;border-bottom: 10px solid #fbf8df;"></span>
				<div style="font-size:12px;position:absolute;left:9px;top:3px;"><a style="color: #333;font-family:Arial;" href="__APP__/Message{url}show{shtml}">您收到新消息了</a></div>
		  </div>
		</header>
	<!--头部结束-->
	<div id="touchpanel" style="width:100%;overflow:hidden;">
	<div id="navdrawer">
		<form name="search" action="__APP__/Search{url}query{shtml}" class="gsc-search-box" accept-charset="utf-8" method="get">
			<div class="form-group">
			   <input type="hidden" name="sitesearch" value="http://youyax.com">
		      <input type="text" class="form-control" name="q" placeholder="输入关键字回车">
		    </div>
	 	</form>
		<ul class="list_side">
		    	<?php
				if(!empty($this->array_array['data_big'])){
					foreach($this->array_array['data_big'] as $k => $n){  		 
				?>
				<li class="title">
					<?php echo $n; ?>
				</li>			
				<?php
				if(!empty($this->array_two['data_block'])){
				 foreach($this->array_two['data_block'] as $v){
				 	if($v['bid']!=$k) continue;
				?>		
						<li>
							<a href="__APP__/List{url}<?php echo $v['id']; ?>{shtml}"><?php echo $v['szone'];?><?php if($this->array['today'.$v['id']]!=0) echo "<span style='color:#f60;margin-left:10px;'>(".$this->array['today'.$v['id']].")</span>";?></a>
						</li>
				<?php
				  	}
				  }
				?>
				<?php
				 }
				}
			?>
		</ul>
	</div>
	<!--版块开始-->
	<section class="posts_list">
		<div style="text-align:left;background:#eed;padding:6px 0;line-height:14px;font-size:12px;color:#666;display:table;width:100%;">
			<span style="color:#999">今日发帖: </span> {todaynum}&nbsp;&nbsp;|&nbsp;&nbsp;<span style="color:#999">帖子数: </span> {tiezinum}&nbsp;&nbsp;|&nbsp;&nbsp;<span style="color:#999">会员数: </span> {usernum}&nbsp;&nbsp;|&nbsp;&nbsp;<span style="color:#999">欢迎新会员: </span> {new_user}
		</div>
		<div class="here">公告栏</div>
			<ul class="list_1">
<?php
			$placard=require("./Conf/placard_set.config.php");
			$placard=array_sort($placard, 'ord', $by = SORT_ASC);
			foreach($placard as $pl){
				if(!empty($pl['title'])){		?>
						<li>
							<a href="<?php echo $pl['url'];?>"><?php echo $pl['title'];?></a>
						</li>		
<?php				}
			}
?>
</ul>
<?php	if(!empty($this->array_two['talk_new'])){	?>
<div class="here">一周新帖</div>
<ul class="list_1">
	<list>
		<li><a href="__APP__/Content{url}{talk_new.id}{shtml}">{talk_new.title}</a></li>	
	</list>
</ul>
<?php	}	?>
<?php	if(!empty($this->array_two['reply_num_max'])){	?>
<div class="here">一周热帖</div>
<ul class="list_1">
	<list>
		<li><a href="__APP__/Content{url}{reply_num_max.rid}{shtml}"><?php echo CommonAction::getTitle({reply_num_max.rid}); ?></a></li>	
	</list>
</ul>
<?php	}	?>
<?php	if(!empty($this->array_array['user_hot'])){	?>
<div class="here">活跃会员</div>
 <table width="100%" cellspacing="0" cellpadding="0">	
	<?php
	$this->array_array['user_hot'] = array_slice($this->array_array['user_hot'],0,5,true);
	foreach($this->array_array['user_hot'] as $k=>$v){
	$user_arr = $this->find($this->C('db_prefix') ."user","string", $k);
	if($user_arr){
?>
	<tr>
		<td width="50" height="70" style="border-bottom: 1px solid #ddd;padding-left:10px;">
			 <img onclick="document.getElementById('quser').value='<?php echo $user_arr['user']; ?>';document.forms['query_username'].target='_blank';document.forms['query_username'].submit();" style="cursor:pointer;width:50px;border-radius:50%" border="0" src="{site}/Public/pic/<?php echo $user_arr['face']; ?>">
		</td>
		<td style="padding:5px 10px;border-bottom: 1px solid #ddd"><div style="color:#515151;font-size:16px;"><?php echo $user_arr['user']; ?></div>
			<div style="color:#999999;font-size:14px;line-height:20px;margin-top:4px;"><?php echo $user_arr['sign']; ?></div></td>	
	</tr>
<?php
	}}
	?>
 </table> 
<?php	}	?>
<?php	if(!empty($this->array_array['tags_hot'])){	?>
<div class="here">热门标签</div>
<div id="tags_hot" style="text-align:left;width:100%;display:table;padding-bottom:4px;">
<?php
	$this->array_array['tags_hot'] = array_slice($this->array_array['tags_hot'],0,12,true);
	foreach($this->array_array['tags_hot'] as $k=>$v){
	?>
	<a href="__APP__/Search{url}query{shtml}?q=<?php echo urlencode($k); ?>&action=tags"><?php echo $k; ?> (<?php echo $v; ?>)</a>
<?php	}	?>
</div>
<?php	}	?>
<div class="here">友情链接</div>
<?php
$friend_url=require("./Conf/friend_url.config.php");
foreach($friend_url as $fu){
if(!empty($fu['title'])){	?>
		<a style="display:inline-block;font-size:12px;float:left;margin-left:20px;margin-top:6px;color:#336699;" target="_blank" href="<?php echo $fu['url'];?>"><?php echo $fu['title'];?></a>
<?php	}}?>
<div style="clear:both;"></div>
  </section>
  </div>
	<!--版块结束-->
	<form name="query_username" method="post" action="__APP__/Content{url}userinfo{shtml}">
		<input type="hidden" id="quser" name="quser">
	</form>
	<include file="Tpl/mobile/Public/navbar.html">
	<!--版权开始-->
	<footer class="fmnav-footer">
		<div class="copyright">
   			<a>Powered BY YouYaX</a>
  		</div>
	</footer>
	<!--版权结束-->
	<script src="{site}/Public/JScript/home_mobile.js" type="text/javascript"></script>
	</body>
</html>